import request from '../../utils/request'

const addOrUpdateLabelApi = (label) => {
  return request.post('/api/app/label', label)
}
const deleteLabelByIdApi = (labelId,deleted) => {
  return request.delete(`/api/admin/label/${labelId}/${deleted}`)
}
const getLabelsApi = () => {
  return request.get(`/api/admin/label`)
}
const getLabelByIdApi = (labelId) => {
  return request.get(`/api/app/label/${labelId}`)
}
export {
  addOrUpdateLabelApi,
  getLabelsApi,
  getLabelByIdApi,
  deleteLabelByIdApi
}
